package com.junmeng.libfloating.tab

import android.view.View
import kotlin.concurrent.thread

/**
 * 模拟产生奔溃
 */
class MenuWorkThreadCrash : TabMenu.Item() {
    private var clickListener = View.OnClickListener {
        thread {
            var d = 1
            d = 1 / 0
        }

    }

    override fun getClickListener(): View.OnClickListener? {
        return clickListener
    }

    override fun getLabel(): String {
        return "子线程奔溃"
    }
}